import BasicLayout from '@/layouts/BasicLayout/index.vue'
import { RouteRecordRaw } from 'vue-router'

// 结果页路由
export const result: Array<RouteRecordRaw> = [
  {
    path: '/result',
    redirect: '/result/success',
    component: BasicLayout,
    meta: {
      title: '结果页',
      isShow: true,
      icon: 'CheckCircleOutlined'
    },
    children: [
      {
        path: '/result/success',
        name: 'Success',
        component: () => import('@/views/result/success/index.vue'),
        meta: {
          title: '成功',
          icon: 'AppstoreOutlined',
          isShow: true
        }
      },
      {
        path: '/result/info',
        name: 'Info',
        component: () => import('@/views/result/info/index.vue'),
        meta: {
          title: '普通',
          icon: 'AppstoreOutlined',
          isShow: true
        }
      },
      {
        path: '/result/warning',
        name: 'Warning',
        component: () => import('@/views/result/warning/index.vue'),
        meta: {
          title: '警告',
          icon: 'AppstoreOutlined',
          isShow: true
        }
      },
      {
        path: '/result/error',
        name: 'Error',
        component: () => import('@/views/result/error/index.vue'),
        meta: {
          title: '错误',
          icon: 'AppstoreOutlined',
          isShow: true
        }
      },
      {
        path: '/result/403',
        name: 'Result403',
        component: () => import('@/views/result/403/index.vue'),
        meta: {
          title: '403',
          icon: 'AppstoreOutlined',
          isShow: true
        }
      },
      {
        path: '/result/404',
        name: 'Result404',
        component: () => import('@/views/result/404/index.vue'),
        meta: {
          title: '404',
          icon: 'AppstoreOutlined',
          isShow: true
        }
      },
      {
        path: '/result/500',
        name: 'Result500',
        component: () => import('@/views/result/500/index.vue'),
        meta: {
          title: '500',
          icon: 'AppstoreOutlined',
          isShow: true
        }
      }
    ]
  }
]
